<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 正则表达式效验输入的是否为正确的手机号 -->
    <script>
      var Number = parseInt(prompt('请输入正确的手机号'))
      if (/^1[3-9][0-9]{9}/.test(Number)) {
        alert('正确')
      } else {
        alert('错误')
      }
    </script>
  </body>
</html>
